ws.on('message', function (message) {
    for (var i = 0; i < clients.length; i++) {
        var clientSocket = clients[i].ws;
        // 判断每个端连接状态
        if (clientSocket.readyState === WebSocket.OPEN) {
            console.log('client [%s]: %s', clients[i].id, message);
            clientSocket.send(JSON.stringify({
                "id": client_uuid,
                "message": message
            }));
        }
    }
})